<template>
  <div>
    <h1>{{ msg }}</h1>
    <h3>我的名字是{{ obj.name }}</h3>
    <p>小vue今年{{obj.age>=18?"成年":"未成年"}}</p>
    <p>来年小vue就{{obj.age+1}}岁了</p>
  </div>
</template>

<script>
export default {
  data() {
    return {
      msg: "Hello",
      obj: {
        name: "小vue",
        age: 5,
      },
    };
  },
};
</script>

<style>
</style>